Run Java application as a different user [on hold]

Posted by Harihar Das on Programmers See other posts from Programmers or by Harihar Das
Published on 2013-10-25T12:46:07Z Indexed on 2013/10/25 16:10 UTC
Read the original article Hit count: 223

Filed under:

I need to run a few perl scripts from a Java GUI application. I am using Runtime API to do that. However, few of the perl scripts need to run under a specific user account to have special credentials to access specialized resources (e.g. Database, Files). I have heard of alleviating user access using UAC. But till now I am not able to find the solution. Please help me on how to run a process under a different user login. Is there anything similar to c# impersonization in Java?

© Programmers or respective owner

Related posts about java